package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.data.bean.ShopExt;
import com.ys.erp.entity.mapper.ShopExtMapper;
import com.ys.erp.entity.service.IShopExtService;
import org.springframework.stereotype.Service;
/**
 * @author lwj
 * @date 2025/6/20
 */
    
@Service
public class IShopExtServiceImpl extends ServiceImpl<ShopExtMapper, ShopExt> implements IShopExtService{

    @Override
    public ShopExt getByCode(String shopCode) {
        QueryWrapper<ShopExt> extQw = new QueryWrapper<>();
        extQw.lambda().eq(ShopExt::getShopCode, shopCode);
        return this.getOne(extQw);
    }

}
